<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form action="" id="from">
			<input type="text"  name="index"/>
			<input type="text"  name="index"/>
		</form>
		<button type="button">form</button>
		<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("button").on('click', function(){
					var a = $("#from").serialize();
					console.log('a:', a);
				})
			})
		</script>
	</body>
</html>
